package com.blog.service.interfaces;

import java.util.List;
import java.util.Map;

import com.blog.model.Article;
import com.blog.model.ArticleWithBLOBs;


public interface IarticleService {

	public abstract int addArticleTodatabase(ArticleWithBLOBs article);

	List<ArticleWithBLOBs> getArticleFromdatabase(String page);

	public abstract ArticleWithBLOBs getArticleById(String id);
	public abstract Map<String, String> getPageList(String page);
	public List<ArticleWithBLOBs> getAllArticle();
	public abstract int updateArticleTodatabase(ArticleWithBLOBs articleWithBLOBs);

	public abstract int delArticle(String id);

	public abstract int increasePoint(int point, String id);

	public abstract List<ArticleWithBLOBs> getpopularFromdatabase();

	public abstract List<ArticleWithBLOBs> getCategoryArticleFromdatabase(
			String tag);

	public abstract List<ArticleWithBLOBs> getCategory();

	public abstract List<ArticleWithBLOBs> getwaterfall();

	public int incview(String articleId);
	public int getview(String articleId);
	public void test();
	public List<ArticleWithBLOBs> getSearchResultFromdatabase(String key);

	public abstract Integer getMdNumFromDB();

	public abstract List<ArticleWithBLOBs> checkExistTitle(String fileName);

	public abstract List<ArticleWithBLOBs> getDbMDList();
}